sysroot: Load bootloader configs via boot_fd
authorColin Walters <walters@verbum.org>
Tue, 8 Apr 2025 19:52:11 +0000 (19:52 +0000)
committerColin Walters <walters@verbum.org>
Wed, 9 Apr 2025 22:28:01 +0000 (22:28 +0000)
commit081e9da9f2d7c6e06affc036b2fa9f4105469167
treeb52fe8cef9f845f2c95fca14e5245cbce7745769
parenteecf887aaafba6211024636aea6de79769645d97
sysroot: Load bootloader configs via boot_fd

This was a general principle cleanup, preparation
for handling VFAT for /boot for systemd-boot/BLS
support.

However I ran into an ugly corner case in our
unit tests that pointed at a sysroot without a
boot directory. The previous logic handled
ENOENT for boot/loader but not /boot.
Continue to cope with that degenerate situation.

Signed-off-by: Colin Walters <walters@verbum.org>
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
src/ostree/ot-admin-builtin-finalize-staged.c
tests/kolainst/destructive/boot-automount.sh